import { axios } from '@/utils/request'

/**
 * @param parameter
 * @returns {*}
 */
export function login (parameter) {
  return axios({
    url: '/api/poros-authcenter/login',
    method: 'post',
    data: parameter
  })
}

export function getInfo () {
  return axios({
    url: '/api/poros-authcenter/user/message',
    method: 'get'
  })
}
export function logout () {
  return axios({
    url: '/api/poros-authcenter/user/logout',
    method: 'post'
  })
}

export function getKey (parameter) {
  return axios({
    url: '/api/poros-authcenter/secret/' + parameter,
    method: 'get'
  })
}

export function getCurrentUserNav (parameter) {
  return axios({
    url: '/api/poros-permission/menu/menus',
    method: 'get',
    params: parameter
  })
}

export function getMesHrEmployeeinfo (parameter) {
  return axios({
    url: '/api/mes-manpower/mesHrEmployeeinfo/currUser?sysCode=mes',
    method: 'get',
    params: parameter
  })
}

